import { BaseModel } from '@/common/base/base.model';
import { Column, Entity } from 'typeorm';

@Entity('BRAND', {
  synchronize: false,
}) // 品牌
export class BrandModel extends BaseModel {
  @Column({
    comment: '状态（1：启用，0：禁用）',
    type: 'smallint',
    default: 1,
  })
  status: number;

  @Column({
    comment: '标题',
    type: 'varchar',
    length: 500,
  })
  title: string;

  @Column({
    comment: '图片url',
    type: 'varchar',
    length: 500,
    default: '',
  })
  img: string;

  @Column({
    comment: '描述',
    type: 'varchar',
    length: 500,
    default: '',
  })
  desc: string;

  @Column({
    comment: '排序（暂未使用）',
    type: 'int',
    default: 1,
  })
  sort: number;
}
